package com.kb.design.mapper.postgreSQL;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kb.design.entity.BonusConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BonusConfigMapper extends BaseMapper<BonusConfig> {

    @Select("SELECT * FROM bonus_config WHERE user_code like CONCAT('%', #{userCode}, '%') and type = #{type}")
    BonusConfig getBonusConfigById(String userCode,Integer type);

}
